package com.example.backend.model;

import com.example.backend.entity.Book;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.Serializers;

import java.util.List;

public class BookModel extends BaseModel {
    @JsonProperty("data")
    List<Book> data;
    public BookModel(int code,String result,List<Book> books){
        this.code=code;
        this.result=result;
        this.count=books.size();
        this.data=books;
    }
}
